/**
 * 组织管理
 */
import request from '../utils/request';

/**
 * 组织列表
 * @param params
 * @returns {Object}
 */
//获取组织列表
export async function admin(params) {
  return request('/v1/admin/admin/login',{
    method:'POST',
    body:params
  });
}
//党组织类别代码
export async function dict_org_type(params) {
  return request('v1/dict/dict/get/table/dict_org_type',{
    method:'POST',
    body:params
  });
}

//获取组织列表
export async function organization(params) {
  return request('/v1/org/org/lists',{
    method:'POST',
    body:params
  });
}
//获取下级党组织
export async function orgchildren(params) {
  return request('/v1/org/org/get_children',{
    method:'POST',
    body:params
  });
}
//获取党组织下的党员
export async function memberLists(params) {
  return request('/v1/member/member/lists',{
    method:'POST',
    body:params
  });
}
//获取党员详细信息
export async function memberInfo(params) {
  return request('/v1/member/member/member',{
    method:'POST',
    body:params
  });
}
//获取民主评议列表
export async function dreviewList(params) {
  return request('/v1/dreview/dreview/index',{
    method:'POST',
    body:params
  });
}
//创建民主评议
export async function addDreview(params) {
  return request('/v1/dreview/dreview/add',{
    method:'POST',
    body:params
  });
}
//党员民主评议等级表列表
export async function review(params) {
  return request('v1/dict/dict/get/table/ccp_democratic_review',{
    method:'POST',
    body:params
  });
}
//党员民主评议奖惩情况代码
export async function rewpun(params) {
  return request('v1/dict/dict/get/table/dict_appraisal_rewpun',{
    method:'POST',
    body:params
  });
}
//党员民主评议结果代码
export async function result(params) {
  return request('v1/dict/dict/get/table/dict_appraisal_result',{
    method:'POST',
    body:params
  });
}
//源组织地区
export async function area(params) {
  return request('v1/dict/dict/get/table/dict_area',{
    method:'POST',
    body:params
  });
}
//新增关系转接
export async function addTransfer(params) {
  return request('/v1/transfer/transfer/create',{
    method:'POST',
    body:params
  });
}
//获取关系转接详情及所有审核组织
export async function transfer(params) {
  return request('/v1/transfer/transfer/transfer',{
    method:'POST',
    body:params
  });
}
//获取关系转接列表
export async function transferlists(params) {
  return request('/v1/transfer/transfer/lists',{
    method:'POST',
    body:params
  });
}
//获取关系转接详情及所有审核组织
export async function transferInfo(params) {
  return request('/v1/transfer/transfer/transfer',{
    method:'POST',
    body:params
  });
}
